/**
 * 
 */
package com.yidu.erp.service.finance;

import java.util.HashMap;
import java.util.Map;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;

import com.yidu.erp.dao.BeyondFinancialExpenditureMapper;
import com.yidu.erp.dao.BeyondFinancialIncomeMapper;

/**
 *
 * @author zengren
 * @date 2017年12月11日
 * @version 1.0
 */
@Service
public class FinanceServiceImpl implements FinanceService{
	
	@Resource
	private BeyondFinancialExpenditureMapper beyondFinancialExpenditureMapper;
	
	@Resource
	private BeyondFinancialIncomeMapper beyondFinancialIncomeMapper;
	
	
	@Override
	public String showYE(String annexId) {
		// TODO Auto-generated method stub
		return beyondFinancialIncomeMapper.queryYE(annexId);
	}

	@Override
	public Map<String, Object> showFinancialOut(Map<String, Object> paramMap) {
		// TODO Auto-generated method stub
		Map<String, Object> map = new HashMap<String, Object>();
		map.put("data", beyondFinancialExpenditureMapper.showList(paramMap));
		map.put("count", beyondFinancialExpenditureMapper.countRows(paramMap));
		map.put("code", 0);
		map.put("msg", 0);
		return map;
	}

	@Override
	public Map<String, Object> showFinancialIn(Map<String, Object> paramMap) {
		Map<String, Object> map = new HashMap<String, Object>();
		map.put("data", beyondFinancialIncomeMapper.showList(paramMap));
		map.put("count", beyondFinancialIncomeMapper.countRows(paramMap));
		map.put("code", 0);
		map.put("msg", 0);
		return map;
	}

}
